home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
dskut
/
diskdump.zip
/
DISKDUMP.DOC
< prev
next >
Wrap
Text File
|
1989-03-07
|
3KB
|
77 lines
DISKDUMP.COM - Version 1.02 - Copyright 1989 by Jim Seymour
This program uses BIOS to read the contents of any sector on any
disk device. The user specifies exactly which sector is to be read.
The output may be in either decimal or hexadecimal, and ASCII or
EBCDIC. It does not allow modification of the sector, nor can it show
more than one sector at a time.
This software is freely distributable as long as the above copyright
notice retains intact and this document is distributed along with the
program.
With no command-line arguments, the following usage summary is shown:
=====================================================================
Usage: DISKDUMP [-eaxdlnwb012] drive cylinder head sector
Copyright 1989 by Jim Seymour
Version 1.02, 7 March 1989
Dumps a sector from disk. Drive must be given in hex: 0=Diskette #1,
80=Hard Disk #1. Cylinder, Head, and Sector must be given in decimal
Options are first read from the environment variable DISKDUMP, if it exists.
-e : show text in EBCDIC
-a : show text in ASCII (the default)
-x : show data in hexadecimal (the default)
-d : show data in decimal (suppresses text if byte grouping)
-w : show data with word grouping
-b : show data with byte grouping (the default)
-l : 132-column output
-n : 80-column output (the default)
-0 : show only the first half of the sector
-1 : show only the last half of the sector
-2 : show both halves of the sector (the default)
If the -d and -w switches are specified, the -e switch forces the
word to be read as high-order, low-order, instead of the normal method
=====================================================================
Options may be specified on the command line, or placed in the environment
variable DISKDUMP. The environment variable is scanned first, so the command
line switches take precedence.
Examples of the various outputs (using the same data) follows:
All switches at the default settings:
DISKDUMP -axbn 80 0 0 1
=========================================================================
Drive: 80, Cylinder: 0, Head: 0, Sector: 1
000: fa 2b c0 8e d0 8e c0 8e | d8 b8 00 7c 8b e0 fb 8b ".+.........|...."
010: f0 bf 00 7e fc b9 00 01 | f3 a5 e9 00 02 b9 10 00 "...~............"
etc...
=========================================================================
Decimal output, byte-grouping:
DISKDUMP -adbn 80 0 0 1
=========================================================================
Drive: 80, Cylinder: 0, Head: 0, Sector: 1
000: 250 43 192 142 208 142 192 142 | 216 184 0 124 139 224 251 139
010: 240 191 0 126 252 185 0 1 | 243 165 233 0 2 185 16 0
etc...
=========================================================================
Decimal output, word-grouping:
DISKDUMP -adwn 80 0 0 1
=========================================================================
Drive: 80, Cylinder: 0, Head: 0, Sector: 1
000: 11258 36544 36560 36544 | 47320 31744 57483 35835 ".+.........|...."
010: 49136 32256 47612 256 | 42483 233 47362 16 "...~............"
etc...
=========================================================================
This program was written using Turbo C version 2.0, tiny model.
If there are any questions/comments about this program, please send e-mail
to me at qintar@agora.UUCP. If that fails, U.S. Mail may be sent to:
P.O. Box 329, North Plains, OR 97133
-Jim Seymour